package pay.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("team") // 根据实际情况调整表名
public class TeamEntity {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("contest_item_id")
    private Integer contestItemId;

    @TableField("user_id")
    private String userId;

    @TableField("logo")
    private String logo;

    @TableField("banner")
    private String banner;

    @TableField("`desc`")
    private String desc;

    @TableField("leader_confirm")
    private Integer leaderConfirm;

    @TableField(exist = false)
    private List<TeamUserEntity> teamUserList;
}